set1 = {1, 2, 3}
set2 = {2, 3, 4}
set3 = {7, 8, 9}
list1 = [3, 4, 5]

union1 = set1.union(set2, set3)
union2 = set1 | set2 | set3
union3 = set1.union(list1)

print(union1, union2, union3)

numbers1 = set1 & set2 & set3
numbers2 = set1.intersection(set2, set3, list1)

print(numbers1, numbers2)

print(set1 - set2)
print(set1.difference(list1))